import {createRouter,createWebHashHistory,RouteRecordRaw} from 'vue-router'


const router = createRouter({
    history: createWebHashHistory(),
    [
        {
            path: '/',
            redirect: '/login',
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('../views/login/index.vue') // 懒加载组件
        }
    ]
})


export default router
